using System;
using System.Linq;
using System.Runtime.Serialization;
 
namespace Model.Entity
{
    [DataContract]
    public class NewsRelatedKey
    {
        private int _newId;
        private int _newsRelatedId;

        public NewsRelatedKey(int newsId, int newsRelatedId)
        {
            _newId = newsId;
            _newsRelatedId = newsRelatedId;
        }

        [DataMember]
        public int NewId
        {
            get
            {
                return this._newId;
            }
        }

        [DataMember]
        public int NewsRelatedId
        {
            get
            {
                return this._newsRelatedId;
            }
        }
    }
}